/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.io.Serial;
import java.util.List;

/**
 * <p>Project: mybatis2021 - BookMapper
 * <p>Powered by webrx On 2021-10-22 11:44:32
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public interface BookMapper {
    @Select("select * from book")
    public List<Book> queryAll();

    public List<String> dbs();

    @Delete("delete from book where id = #{id}")
    public int deleteById(int id);

}
